package com.leoren.run.vo;

/**
 * 记录路径实体类
 */
public class RecordPath {

    private Long id;

    private Long recordId;

    private Long userId;

    private Long mapId;

    private Integer count;

    private Float lat;

    private Float lng;

    @Override
    public String toString() {
        return "RecordPath{" +
                "id=" + id +
                ", recordId=" + recordId +
                ", userId=" + userId +
                ", mapId=" + mapId +
                ", count=" + count +
                ", lat=" + lat +
                ", lng=" + lng +
                '}';
    }

    public RecordPath() {
    }

    public static RecordPath AssembleRecordPath(RoutePath routePath, int count, Long userId) {
        RecordPath recordPath = new RecordPath();
        recordPath.setCount(count);
        recordPath.setLat(routePath.getLat());
        recordPath.setLng(routePath.getLng());
        recordPath.setMapId(routePath.getMapId());
        recordPath.setUserId(userId);
        return recordPath;
    }

    public RecordPath(Long id, Long recordId, Long userId, Long mapId, Integer count, Float lat, Float lng) {
        this.id = id;
        this.recordId = recordId;
        this.userId = userId;
        this.mapId = mapId;
        this.count = count;
        this.lat = lat;
        this.lng = lng;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRecordId() {
        return recordId;
    }

    public void setRecordId(Long recordId) {
        this.recordId = recordId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getMapId() {
        return mapId;
    }

    public void setMapId(Long mapId) {
        this.mapId = mapId;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Float getLat() {
        return lat;
    }

    public void setLat(Float lat) {
        this.lat = lat;
    }

    public Float getLng() {
        return lng;
    }

    public void setLng(Float lng) {
        this.lng = lng;
    }
}
